<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%
	String path = request.getContextPath();
 %>
<title>添加用户</title>
        <link href="../../../css/main.css" type="text/css" rel="stylesheet"/>
        <script type="text/JavaScript" language="javascript" src="<%=path %>/js/jquery-1.3.1.min.js"></script>
         
</head>
<body>
<f:view>
 <h:form id="peopleForm" onsubmit="return verifySumbit();" >
    <h:inputHidden id="roleCheckbox" value="#{peopleBean.roleCheckbox}"></h:inputHidden>
	<h:inputHidden id="roleChecked" value="#{peopleBean.roleChecked}"></h:inputHidden>
	<h:inputHidden id="roleId" value="#{peopleBean.roleId}"></h:inputHidden>
	
<div class="cont2">
  <div class="table2">
    <div class="title1Bg">
     <div class="title1 f14"><strong>添加</strong><span class="f12 fright"><h:commandButton action="#{peopleBean.saveOrupdate}"
										styleClass="but_submit" value="保存">
														</h:commandButton>
	   <h:commandLink value="返回"  styleClass="buts but6" action="#{peopleBean.backToSearch}" />       
	 </span></div>
	</div>
    <div class="cont3Bg">
      <div class="cont3Bg2">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont4">
        <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="td1 f14"><span>*</span>用户ID:</td>
            <td> <h:inputText id="userId" size="35" value="#{peopleBean.userId}"   styleClass="input2"  > 
             </h:inputText> <span class="red"> <h:message for="userId"></h:message>* </span>&nbsp;
            </td>
          </tr>
        <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="td1 f14"><span>*</span>用户姓名:</td>
            <td> <h:inputText id="userName" size="35" value="#{peopleBean.userName}"   styleClass="input2"  > 
             </h:inputText> <span class="red"> <h:message for="userName"></h:message>* </span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">密码:</td>
            <td> <h:inputText id="password" size="35"  styleClass="input2" value="#{peopleBean.password}" required="false"> 
                 </h:inputText> <span class="red"> <h:message for="password"></h:message>* </span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">确认密码:</td>
            <td><h:inputSecret id="ckpassword" size="35" styleClass="input2">
                 </h:inputSecret> <span class="red"> <h:message for="ckpassword"></h:message>* </span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">电话:</td>
            <td> <h:inputText id="phone"  size="35" styleClass="input2" value="#{peopleBean.phone}" required="false"> 
                 </h:inputText> <span class="red"> <h:message for="phone"></h:message></span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">手机:</td>
            <td> <h:inputText id="mobile"  size="35" styleClass="input2" value="#{peopleBean.mobile}" required="false"> 
                 </h:inputText> <span class="red"> <h:message for="mobile"></h:message></span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
			<td  class="f14">用户角色:</td>
			<td >
					<span id="roleCheckBoxSpan"></span>
					<span class="red"> <h:message for="roleId"></h:message>* </span>&nbsp;
			</td>
		  </tr>
		  <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">邮箱:</td>
            <td> <h:inputText id="email" size="35"  styleClass="input2" value="#{peopleBean.email}" required="false"> 
                 </h:inputText> <span class="red"> <h:message for="email"></h:message></span>&nbsp;
            </td>
          </tr>
          <tr><td colspan="2" class="td3" height="1"></td></tr>
          <tr>
            <td class="f14">备注:</td>
            <td> 
           <h:inputTextarea id="remark"  rows="3" cols="52"  value="#{peopleBean.remark}" required="false"> 
             </h:inputTextarea></td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
</h:form>
		</f:view>
</body>
</html>
<script type="text/javascript" language="javascript">
	function selectBank(){
		openwindowtocenter("/gcees/faces/system/bank/selectBank.jsf?searchTag=isSearch&selId=peopleForm:peopleBank&selName=peopleForm:bankName","",820,580);
	}
</script>
<script language="JavaScript" src="User.js" type="text/JavaScript"charset="utf-8"></script>